#ifndef ABBR_REFORM_
#define ABBR_REFORM_
#include"node_reformer.h"
#include"../../process.h"

class AbbrReform : public NodeReformer
{
	private:
		string to_abbr(string query);
		map<string, set<string>> abbr_model_g, abbr_model_l;
		void decode(string line, map<string, set<string>> &abbr_model);
	public:
		AbbrReform(iostream *abbr_file);
		void update(string line);
		void reform(QueryNode &node);
		QueryNode reform_new(QueryNode &node);

};
#endif